<template>
	<view class="page">
		<view>
			<u-textarea v-model="settlementData.data" placeholder="请输入备注信息"></u-textarea>
		</view>
		<view class="marginTop30">
			<u-button type="error" text="确认结算" @click="submit"></u-button>
		</view>
		<u-toast ref="uToast"></u-toast>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				settlementData:{
					id: 0,
					data: ''
				}
			}
		},
		onLoad() {
		},
		onReady() {
		},
		methods: {

			submit() {
				let that = this
				if(uni.$u.test.isEmpty(that.settlementData.data)){
					that.$refs.uToast.show({
						message: '请输入备注信息!'
					})
				}else {
					that.$reqJsonPost('StoreStaffTocashCashAll', that.settlementData).then(res => {
						that.$refs.uToast.show({
							loading: true,
							message: res.msg,
							complete() {
								uni.navigateBack()
							}
						})
					})
				}
				
			}
		},
	}
</script>

<style lang="scss" scoped>
	.page {
		padding: 30rpx;
		background-color: #fff;
	}
	.marginTop30{
		margin-top: 30rpx;
		
	}
</style>
